import axios, { Axios } from 'axios'
const context = '/deviceservice'

/**
 * 获取 CrrCleaningSummaryReport 分页列表
 */
export function getCrrCleaningSummaryReportPagination(data: any) {
  return axios.get(`${context}/crrCleaningSummaryReport/pagination`, {
    params: data,
  })
}

/**
 * 获取 CrrCleaningSummaryReport 所有数据
 */
export function getCrrCleaningSummaryReportAllList(data: any) {
  return axios.get(`${context}/crrCleaningSummaryReport/allList`, {
    params: data,
  })
}

/**
 * 获取 CrrCleaningSummaryReport 详情
 */
export function getCrrCleaningSummaryReportDetailById(id: any) {
  return axios.get(`${context}/crrCleaningSummaryReport/${id}`, {
    params: { id },
  })
}

/**
 * 新增 CrrCleaningSummaryReport
 */
export function addCrrCleaningSummaryReport(data: any) {
  return axios.post(`${context}/crrCleaningSummaryReport`, data)
}

/**
 * 修改 CrrCleaningSummaryReport
 */
export function updateCrrCleaningSummaryReport(data: any) {
  return axios.put(`${context}/crrCleaningSummaryReport`, data)
}

/**
 * 删除 CrrCleaningSummaryReport
 */
export function batchRemoveCrrCleaningSummaryReport(data: any) {
  return axios.post(`${context}/crrCleaningSummaryReport/batchRemove`, data)
}
